﻿
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;

namespace Yoozoo.Gameplay.City.AI.Node
{
    [Category("Ggame/City")]
    public class NPCSetTransform : AIBaseNode
    {
        [RequiredField]
        public BBParameter<Vector3> initPos;
        [RequiredField]
        public BBParameter<Vector3> initRot;

        protected override void OnExecute()
        {
            base.SetPosition(initPos.value);
            base.SetRotation(initRot.value);
            EndAction(true);
        }
    }
}
